﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace SMG.Presentation
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void MenuItem_Click(object sender, RoutedEventArgs e)
        {
            WServidor servidor = new WServidor();
            servidor.Show();
        }

        private void MenuItem_Click_1(object sender, RoutedEventArgs e)
        {
            WGrupo servidor = new WGrupo();
            servidor.Show();
        }

        private void MenuItem_Click_2(object sender, RoutedEventArgs e)
        {
            WPessoa pessoa = new WPessoa();
            pessoa.Show();
        }

        private void MenuItem_Click_3(object sender, RoutedEventArgs e)
        {
            WEnviarEmail email = new WEnviarEmail();
            email.Show();
        }

        private void MenuItem_Click_4(object sender, RoutedEventArgs e)
        {
            WConfig config = new WConfig();
            config.Show();
        }

        private void Window_Closed(object sender, EventArgs e)
        {
            Environment.Exit(0);
        }
    }
}
